package com.adobe.apprise.controller
{
	import com.adobe.cairngorm.control.FrontController;
	
	public class Controller extends FrontController
	{

		import com.adobe.apprise.events.*;
		import com.adobe.apprise.commands.*;

		public function Controller()
		{
			this.addCommands();
		}
		
		private function addCommands():void
		{
			this.addCommand(InitEvent.INIT_EVENT, InitCommand);
			this.addCommand(ShutdownEvent.SHUTDOWN_EVENT, ShutdownCommand);
			this.addCommand(AddFeedEvent.ADD_FEED_EVENT, AddFeedCommand);
			this.addCommand(AggregateEvent.AGGREGATE_EVENT, AggregateCommand);
			this.addCommand(PopulateViewControlEvent.POPULATE_VIEW_CONTROL_EVENT, PopulateViewControlCommand);
			this.addCommand(RefreshCountsEvent.REFRESH_COUNTS_EVENT, RefreshCountsCommand);
			this.addCommand(ImportFeedsEvent.IMPORT_FEEDS_EVENT, ImportFeedsCommand);
			this.addCommand(ExportFeedsEvent.EXPORT_FEEDS_EVENT, ExportFeedsCommand);
			this.addCommand(RefreshAllEvent.REFRESH_ALL_EVENT, RefreshAllCommand);
			this.addCommand(DeleteFeedEvent.DELETE_FEED_EVENT, DeleteFeedCommand);
			this.addCommand(SearchEvent.SEARCH_EVENT, SearchCommand);
			this.addCommand(MarkAllReadEvent.MARK_ALL_READ_EVENT, MarkAllReadCommand);
			this.addCommand(BusyEvent.BUSY_EVENT, BusyCommand);
		}
		
	}
}
